{% extends "base.html" %}
{%block content%}
<h1>Register</h1>
    {% if form.errors %}
        <p>Your username and password didn't match. Please try again.</p>
    {% endif %}

    <form method="post" action="{% url 'register' %}">
        {% csrf_token %}
        <table>
        {{form.as_table}}
        </table>
       <input type="submit" value="Register" />
   </form>
   
<p>
    If you have an account you can <a href="{% url 'login' %}">log in</a>.
</p>
{%endblock%}
